import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import api from './api/index.js'
import vuex from 'vuex'

Vue.config.productionTip = false
Vue.use(Vant);
Vue.use(api);
Vue.use(vuex);

router.beforeEach((to, from, next) => {
  // console.log(to, from)
  // console.log(next)
  next()
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

